package cn.skyquant.quant4j.api.account;

import java.io.Serializable;

public enum AccountType implements Serializable {
    DEMO("模拟帐号"),
    LIVE("个人帐号"),
    PAMM("基金管理帐号"),
    CLIENT("基金子帐号"),
    UNKNOWN("未知账号类型");
    private static final long serialVersionUID = 1L;
    String desc;
    AccountType(String desc){
        this.desc = desc;
    }

    public static final AccountType get(String typestr){
        for(AccountType accountType:AccountType.values()){
            if(accountType.name().equalsIgnoreCase(typestr)){
                return accountType;
            }
        }
        return UNKNOWN;
    }
}
